<?php
/**
 * 类名称
 * User: 13651
 * Time: 2025/9/16 17:30
 */

namespace App\Repository;

use App\Models\Merchant;

class MerchantRepo extends CommonRepo
{

    /**
     * 根据手机号获取信息
     * @param string $phone
     * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null
     */
    public function getByPhone(string $phone)
    {
        return Merchant::query()->where('phone',$phone)->first();
    }
}